package routers

import (
	"github.com/astaxie/beego"
	"github.com/beego/i18n"
	"ha666web/controllers/users"
)

func init() {

	//首页
	beego.Router("/", &users.MainController{})

	//用户中心
	beego.Router("/users/logininfo", &users.UserLoginInfoController{})

	beego.Router("/login", &users.LoginUserController{})
	beego.Router("/logout", &users.LogoutUserController{})

	// Register template functions.
	beego.AddFuncMap("i18n", i18n.Tr)
}
